package com.rayo.accesscontrollercopy.utils;

import android.content.Context;
import android.content.Intent;

import com.rayo.accesscontrollercopy.module.main.MainActivity;

/**
 * Created by lyc-pc on 17/7/27.
 */

public class BroadcastUtils {
    public static void send(Context context,int flag){
        Intent intent=new Intent();
        intent.setAction(MainActivity.SERVICE);
        intent.putExtra("flag",flag);
        context.sendBroadcast(intent);
    }
}
